    using SmartSoft.DAL;
    using System.Web.Services;
    using System;
    using System.Data;
    using System.Data.SqlClient;

[WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.None)]
public class WSDmHdDataAccess : System.Web.Services.WebService
{
    private DmHdDataAccess objDataAccess = new DmHdDataAccess();
    public WSDmHdDataAccess()
{
}



    [WebMethod(MessageName = "NoneParams", Description = "", EnableSession = true)]
    public DataSet GetDataSet()
{
        return objDataAccess.GetDataSet();
}

    [WebMethod(MessageName = "OneParams", Description = "", EnableSession = true)]
    public DataSet GetDataSet(string ps_Code)
{

return objDataAccess.GetDataSet(ps_Code);
}

    [WebMethod]
    public DataTable GetDetailTable(string ps_Stt)
{

return objDataAccess.GetDetailTable(ps_Stt);
}

    [WebMethod]
    public bool SaveDetailTable(object ps_KeyCode, DataTable po_DetailDataTable)
{
object[] arr = Validator.Validate(ps_KeyCode);
return objDataAccess.SaveDetailTable(arr[0], po_DetailDataTable);
}

    [WebMethod]
    public int SaveRow(bool pb_NewChecked, DataTable tableRow)
{

return objDataAccess.SaveRow(pb_NewChecked, tableRow.Rows[0]);
}

}
